package com.matt.foundation.vo.news;

import com.matt.domain.news.SystemNotification;
import com.matt.domain.news.SystemNotificationMenu;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * *******************************
 * Created by lch.
 * form com.matt
 * on 2018/11/28
 * *******************************
 */
@Data
public class WebNewsVo {

    private SystemNotification homePageNews;

    private List<SystemNotificationMenu> menuNews = new ArrayList<SystemNotificationMenu>();

    public static WebNewsVo of(SystemNotification homePageNews,List<SystemNotificationMenu> menuNews ){
        WebNewsVo vo = new WebNewsVo();
        vo.setHomePageNews(homePageNews);
        vo.setMenuNews(menuNews);
        return vo;
    }

}
